package com.soul.consumer.controller;

import com.soul.api.DemoService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {

    @Reference(version = "1.0",check = false)
    private DemoService demoService;

    @GetMapping("/test")
    public String test(String name){
        String s = demoService.sayHello(name);
        return s;
    }
}
